package com.pioneer.gui.invoice.model;

import javax.swing.*;          //This is the final package name.
//import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all
import javax.swing.event.*;                               //Swing releases before Swing 1.1 Beta 3.
							   
import javax.swing.plaf.metal.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Vector;

public class InvoiceList
implements ComboBoxModel
	{
		private Vector invoicelist=new Vector();
		private String selectString="";
		
		public InvoiceList()
		{
			invoicelist.add("2000-0001");
			invoicelist.add("2000-0002");
			invoicelist.add("2000-0003");
			invoicelist.add("2000-0004");
			invoicelist.add("2000-0005");
		}		
		
		public Object getSelectedItem() 
		{
			return selectString;
		}
		public void setSelectedItem(Object anItem) 
		{
			selectString=(String)anItem;			
		}
		
		public void removeListDataListener(ListDataListener l)
		{
		}
		
		public void addListDataListener(ListDataListener l)
		{
		}
		
		public Object getElementAt(int index)
		{
			return invoicelist.elementAt(index);
		}
		
		public int getSize()
		{
			return invoicelist.size();
		}
	}